binary patterns